﻿using System;
using System.Data;
using System.ServiceModel;
using System.ServiceModel.Activation;

namespace SecurityTokenServiceNS
{
	public class STSImplSampleHostFactory : ServiceHostFactoryBase
	{
		public override ServiceHostBase CreateServiceHost(string constructorString, Uri[] baseAddresses)
		{
			return new STSImplSampleHost(baseAddresses);
		}
	}

	class STSImplSampleHost : ServiceHost
	{
		public STSImplSampleHost(params Uri[] addresses)
			: base(typeof(STSImplSample), addresses)
		{
			AddInTool.LoadAddIns();
		}
	}
}

